package com.stockz.ui.swing.core.menu;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stockz.ui.swing.core.MainFrame;
import com.stockz.ui.swing.widget.JMenuBar;

@Component 
public class MenuBar extends JMenuBar implements InitializingBean {
	private static final long serialVersionUID = 4380140981499949759L;

	@Autowired
	private MainFrame mainFrame;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		mainFrame.setJMenuBar(this);
	}

}
